using SqlSugar;
using System.Collections.Generic;

namespace ByteSite.Entitys
{
    /// <summary>
    /// 商品规格
    /// </summary>
    public class dt_article_spec
    {
        /// <summary>
        /// 商品规格
        /// </summary>
        public dt_article_spec()
        {
        }

        /// <summary>
        /// 自增ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public System.Int32 id { get; set; }

        /// <summary>
        /// 所属频道
        /// </summary>
        public System.Int32? channel_id { get; set; }

        /// <summary>
        /// 父节点ID
        /// </summary>
        public System.Int32? parent_id { get; set; }

        /// <summary>
        /// 规格标题
        /// </summary>
        public System.String title { get; set; }

        /// <summary>
        /// 规格图片
        /// </summary>
        public System.String img_url { get; set; }

        /// <summary>
        /// 备注说明
        /// </summary>
        public System.String remark { get; set; }

        /// <summary>
        /// 排序数字
        /// </summary>
        public System.Int32? sort_id { get; set; }

        [SugarColumn(IsIgnore = true)]
        public List<Entitys.article_spec_value> values { get; set; }
    }
}